import axios from 'axios';

export function fetchMaterials() {
  return axios.post('/api/inventory/materials');
}

export function fetchPersons() {
  return axios.post('/api/inventory/persons');
}

export function storageMaterial(data) {
  return axios.post('/api/materials/storage', data);
}

export function dispatchMaterial(data) {
  return axios.post('/api/inventory/dispatch', data);
}

export function queryMaterials(data) {
  return axios.post('/api/inventory/query', data);
}
